<template>
  <nav class="nav">
    <!-- <div class="nav-interval"> -->
    <div class="logo">logo</div>

    <ul>
      <div class="control">
        <i class="iconfont icon-liebiao1 list"></i>
      </div>
      <slot name="nav"></slot>
    </ul>
    <slot name="navname"></slot>
    <!-- <div class="login">登录</div> -->
    <!-- </div> -->
  </nav>
</template>

<script>
export default{
  data() {
    return {
      top: ["主页", "主题", "相册", "自学路线", "个人"],
    };
  },
};
</script>

<style>
.nav {
  position: fixed;
  /* top: 0; */
  width: 100%;
  height: 50px;
  background: white;
  box-shadow: 0 0 5px white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  overflow: hidden;
  z-index: 9;
}
.nav .out{
  font-size: 13px;
}
.nav .out span {
  color: rgb(114, 114, 114);
}
.nav ul .control {
  height: 50px;
  width: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
}
.nav ul .control .list {
  color: #333;
  font-size: 30px;
}
.nav ul li {
  list-style: none;
  margin: 0 10px;
  padding: 5px 20px;
  border-radius: 20px;
  background: white;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  float: left;
  transition: 0.3s;
  user-select: none;
}
.nav ul li:hover {
  color: rgb(5, 132, 216);
}
.nav .login {
  cursor: pointer;
}
.liBox {
  box-shadow: 0 0 5px rgba(200, 200, 200) inset;
  color: rgb(5, 132, 216) !important;
}
</style>
